﻿@model IEnumerable<EquipManagement.Models.ApplicationUser>

@{
    ViewBag.Title = "用户信息";
}

<h2>用户列表</h2>

<p>
    @Html.ActionLink("新用户", "Register")
</p>
<table class="table">
    <tr>
        <th>
            @Html.DisplayNameFor(model => model.Name)
        </th>
        <th>
            电子邮件
        </th>       
        <th></th>
    </tr>

@foreach (var item in Model) {
    <tr>
        <td>
            @Html.DisplayFor(modelItem => item.Name)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Email)
        </td>
        
        <td>
            @Html.ActionLink("编辑", "Edit", new { id = item.Id }) |
            @Html.ActionLink("删除", "Delete", new { id = item.Id })
        </td>
    </tr>
}

</table>
